import request from "@/utils/request";

// 状态统计
export function queryByCountRegisterBase(query) {
  return request({
    url: "/business/registerBase/queryByCount",
    method: "get",
    params: query,
  });
}

// 根据科室查询列表
export function queryByDeptRegisterBase(query) {
  return request({
    url: "/business/registerBase/queryByDept",
    method: "get",
    params: query,
  });
}

// 批量审核
export function saveAuditRegisterBase(data) {
  return request({
    url: "/business/registerBase/saveAudit",
    method: "post",
    data: data,
  });
}

// 检查是否已确认来院报到
export function checkSureStatus(data) {
  return request({
    url: "/business/registerBase/judgeNotice",
    method: "post",
    data: data,
  });
}

// 批量通知
export function saveNoticeRegisterBase(data) {
  return request({
    url: "/business/registerBase/saveNotice",
    method: "post",
    data: data,
  });
}

// 设置生源类型
export function saveSourceRegisterBase(data) {
  return request({
    url: "/business/registerBase/saveSource",
    method: "post",
    data: data,
  });
}

// 修改通知状态
export function updateNoticeRegisterBase(data) {
  return request({
    url: "/business/registerBase/updateNotice",
    method: "post",
    data: data,
  });
}

// 分配带教
export function saveAllocationRegisterBase(data) {
  return request({
    url: "/business/registerBase/saveAllocation",
    method: "post",
    data: data,
  });
}

// 变更进修
export function saveModifyRegisterBase(data) {
  return request({
    url: "/business/registerBase/saveModify",
    method: "post",
    data: data,
  });
}

// 考评评分
export function saveScoreRowRegisterBase(data) {
  return request({
    url: "/business/registerBase/saveScoreRow",
    method: "post",
    data: data,
  });
}

// 考勤状态调整
export function saveLeaveRegisterBase(data) {
  return request({
    url: "/business/registerBase/batchSaveLeave",
    method: "post",
    data: data,
  });
}

// 一键销假
export function saveCloseLeaveRegisterBase(data) {
  return request({
    url: "/business/registerBase/saveLoseLeave",
    method: "post",
    data: data,
  });
}
// 批量销假
export function batchSaveLoseLeave(data) {
  return request({
    url: "/business/registerBase/batchSaveLoseLeave",
    method: "post",
    data: data,
  });
}
// 结业审批
export function saveGraduationRegisterBase(data) {
  return request({
    url: "/business/registerBase/saveGraduation",
    method: "post",
    data: data,
  });
}

// 发送评价通知
export function saveEvaluateNoticeRegisterBase(data) {
  return request({
    url: "/business/registerBase/saveEvaluateNotice",
    method: "post",
    data: data,
  });
}

// 下载短期证书
export function certificateDownLoadRegisterBase(params) {
  return request({
    url: "/business/registerBase/queryByCertificate",
    method: "get",
    params: params,
    responseType: "blob",
  });
}
